<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\peps_eip\controller;

/**
 * NewsController 类
 *
 * @since 1.0(2016-11-20) SoChishun(14507247@qq.com) Added.
 */
class NewsController extends AppbaseController {

    function _empty($name = '') {
        $name = 'xinwendongtai';
        $asidemenu_data = array(
            array('title' => '新闻动态', 'code' => 'xinwendongtai', 'url' => U('News/xinwendongtai')),
            array('title' => '公告通知', 'code' => 'gonggaotongzhi', 'url' => U('News/gonggaotongzhi')),
            array('title' => '行业动态', 'code' => 'hangyedongtai', 'url' => U('News/hangyedongtai')),
        );
        $this->assign('asidemenu_data', $asidemenu_data);
        $this->display('list');
    }
    function detail($id=0){
        $asidemenu_data = array(
            array('title' => '新闻动态', 'code' => 'xinwendongtai', 'url' => U('News/xinwendongtai')),
            array('title' => '公告通知', 'code' => 'gonggaotongzhi', 'url' => U('News/gonggaotongzhi')),
            array('title' => '行业动态', 'code' => 'hangyedongtai', 'url' => U('News/hangyedongtai')),
        );
        $this->assign('asidemenu_data', $asidemenu_data);
        $this->display();
    }
}
